home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / grabthegrub.swf / scripts / DefineSprite_328 / frame_4 / DoAction.as
Text File  |  2007-10-01  |  471b  |  20 lines

  1. _parent.lsl.instructionsButton._visible = false;
  2. msgText.text = "Congratulations, You Win!";
  3. gotoLevel.text = "play again";
  4. mBtn.onRollOver = function()
  5. {
  6.    this.nextFrame();
  7. };
  8. mBtn.onRollOut = mBtn.onReleaseOutside = function()
  9. {
  10.    this.prevFrame();
  11. };
  12. mBtn.onRelease = function()
  13. {
  14.    this._parent._parent.resetGame();
  15.    this._parent._parent.initRound(1);
  16.    this._parent.gotoAndStop("off");
  17. };
  18. _parent.stopSounds();
  19. _parent.playSound("winner");
  20.